package com.fowo.api.model.purchase.report;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * 采购报表采购员视图结果
 */
@Getter
@Setter
public class PurchaseReportBuyerResult implements Serializable {

  @Schema(title = "采购员id")
  private Long id;

  @Schema(title = "采购员")
  private String buyer;

  @Schema(title = "采购量")
  private Integer applicationNum;

  @Schema(title = "到货量")
  private Integer quantityReceived;

  @Schema(title = "待到货量")
  private Integer quantityReceive;

  @Schema(title = "良品量")
  private Integer goodProduct;

  @Schema(title = "次品量")
  private Integer defectiveProduct;

  @Schema(title = "退货量")
  private Integer quantityReturn;

  @Schema(title = "平均单价")
  private Float unitPrice;

  @Schema(title = "订货金额")
  private Float applicationAmount;

  @Schema(title = "到货金额")
  private Float receivedAmount;

  @Schema(title = "待到货金额")
  private Float receiveAmount;

  @Schema(title = "退货金额")
  private Float returnAmount;

  @Schema(title = "次品率")
  private Float defectivePer;

  @Schema(title = "抽检次品率")
  private Float qcBadPre;

  @Schema(title = "退货率")
  private Float returnPer;

  @Schema(title = "逾期采购量")
  private Integer overdueNum;

  @Schema(title = "逾期率（按数量）")
  private Float overduePre;

  @Schema(title = "逾期时长")
  private Integer overdueTime;

  @Schema(title = "平均逾期时长")
  private Float overdueTimePre;
}
